﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class HeroGun : Gun {
	public static HeroGun instance;

	// Use this for initialization
	/// <summary>
	/// Awake is called when the script instance is being loaded.
	/// </summary>
	void Awake()
	{
		instance = this;
	}
	void Start () {
		gatlinPool = PoolControl.instance.gatlinPool;
		cannonPool = PoolControl.instance.cannonPool;
		missilePool = PoolControl.instance.missilePool;
		laserPool = PoolControl.instance.laserPool;
		jumppingMissilePool = PoolControl.instance.jumppingMissilePool;
		assaultMissilePool = PoolControl.instance.assaultMissilePool;
		cruiseMissilePool = PoolControl.instance.cruiseMissilePool;
		burningMissilePool = PoolControl.instance.burningMissilePool;
		shipTorpedoPool = PoolControl.instance.shipTorpedoPool;
		cruiseAssaultMissilePool = PoolControl.instance.cruiseAssaultMissilePool;
	}
	
	// Update is called once per frame
	void Update () {
		if(!isShow)
		{
			timer += Time.deltaTime;
		}
		else{
			timer = 0;
		}
	}
}
